package com.vogue.supplymall.order.domain.mapper;

import com.vogue.supplymall.common.domain.dto.CommentInfo;
import com.vogue.supplymall.order.domain.provider.CommentProvider;
import org.apache.ibatis.annotations.Mapper;

import com.vogue.supplymall.order.domain.model.Comment;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;
import java.util.Map;

@Mapper
public interface CommentMapper extends BaseMapper<Comment, Long>{


    /**
     * 查看买家 去评价列表
     * @param commentInfo
     * @return
     */
    @SelectProvider(type = CommentProvider.class, method = "find")
    List<Map<String, Object>> findBuyerCommentList(CommentInfo commentInfo);

    /**
     * 查看卖家 去评价列表
     * @param commentInfo
     * @return
     */
    @SelectProvider(type = CommentProvider.class, method = "findSell")
    List<Map<String, Object>> findSellerCommentList(CommentInfo commentInfo);
}
